from selenium import webdriver
from time import sleep
from selenium.webdriver.common.by import By

driver=webdriver.Edge()
driver.get('https://www.baidu.com/')

#点击照相机
driver.find_element(By.CLASS_NAME,'soutu-btn').click()
sleep(5)

#点击选择文件
#上传文件
driver.find_element(By.CLASS_NAME,'upload-pic').send_keys(r'C:\Users\HP\Desktop\lx.png')
sleep(5)


sleep(10)
driver.quit()
